home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>5.6.  Levels</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="gimp-tools-color.html" title="5.  Color Tools" />
- <link rel="prev" href="gimp-tool-threshold.html" title="5.5.  Threshold" />
- <link rel="next" href="gimp-tool-curves.html" title="5.7.  Curves" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">5.6. 
- <span lang="en" xml:lang="en">Levels</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="gimp-tool-threshold.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">5. 
- <span lang="en" xml:lang="en">Color Tools</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="gimp-tool-curves.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect2" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="gimp-tool-levels"></a>5.6. 
- <span lang="en" xml:lang="en">Levels</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2429 $</td>
- <td align="left">2008-01-17</td>
- <td align="left">j.h</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2645598" class="indexterm"></a>
- <a id="id2645611" class="indexterm"></a>
- <a id="id2645625" class="indexterm"></a>
- <p>
- The Level tool provides features similar to the Histogram tool but can
- also change the intensity range of the active layer or selection in every
- channel. This tool is used to make an image lighter or darker, to change
- contrast or to correct a predominant color cast.
- </p>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2645644"></a>5.6.1. 
- <span lang="en" xml:lang="en">Activate the Tool</span>
- </h4>
- </div>
- </div>
- </div>
- <p>
- You can get to the Level Tool in the image-menu through:
- <span class="guimenu"><span class="accel">T</span>ools</span> ‚Üí <span class="guisubmenu"><span class="accel">C</span>olor Tools</span> ‚Üí <span class="guimenuitem"><span class="accel">L</span>evels</span>, or
- <span class="guimenu">Colors</span> ‚Üí <span class="guimenuitem">Levels</span>,
- </p>
- <p>
- or by clicking the
- <span class="guiicon">
- <span class="inlinemediaobject"><img src="../images/toolbox/stock-tool-levels-22.png" /></span>
- </span>
- icon in Toolbox if this tool has been installed there. For this, go to
- <a class="link" href="gimp-dialogs-misc.html#gimp-tools-dialog" title="5.1.  Tools Dialog">Tools Dialog</a>.
- </p>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2645740"></a>5.6.2. 
- <span lang="en" xml:lang="en">Options</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2645751"></a>
- <p class="title">
- <b>Figure 13.128. 
- <span lang="en" xml:lang="en">Level tool options</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/tools-levels.png" alt="Level tool options" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Channel</span>
- </dt>
- <dd>
- <p>
- You can select the specific channel which will be modified by the
- tool:
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- <span class="guilabel">Value</span> makes changes to the value of
- all RGB channels in the image: the image becomes darker or
- lighter.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Red</span>, <span class="guilabel">Green</span> and
- <span class="guilabel">Blue</span> work on a particular color
- channel: the image gets more or less color. Remember that
- adding or removing a color result in removing or adding
- the complementary color
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Alpha</span> works on semi-transparent layers
- or selections: here, dark means more transparency, and
- white is fully opaque. Your image must have an Alpha
- Channel, otherwise this option is disabled.
- </p>
- </li>
- <li>
- <p>
- <span class="guilabel">Initialize channel</span> cancels changes to
- the selected channel.
- </p>
- </li>
- </ul>
- </div>
- <p>
- </p>
- </dd>
- <dt>
- <span class="term">Input Levels</span>
- </dt>
- <dd>
- <p>
- The main area is a graphic representation of the active layer or
- selection dark (Shadows), mid and light (Highlight)tones content
- (the Histogram). They are on abscissa from level 0 (black) to
- level 255 (white). Pixel number for a level is
- on ordinate axis. The curve surface represents all the pixels of
- the image for the selected channel. A well balanced image is an
- image with levels (tones) distributed all over the whole range.
- An image with a blue predominant color, for example, will produce
- a histogram shifted to the left in Green and Red channels,
- signified by green and red lacking on highlights.
- </p>
- <p>
- Level ranges can be modified in three ways:
- </p>
- <div class="itemizedlist">
- <ul type="opencircle">
- <li style="list-style-type: circle">
- <p>
- Three triangles as sliders: one black for dark tones
- (Shadows), one grey for midtones (Gamma), one white for light
- (Highlights) tones.
- </p>
- <p>
- The black slider determines the <span class="emphasis"><em>black point
- </em></span>: all pixels with this value or less
- will be black (no color with a color channel selected /
- transparent with the Alpha channel selected).
- </p>
- <p>
- The white slider determines the <span class="emphasis"><em>white point
- </em></span>: all pixels with this value or
- higher, will be white (fully colored with a color channel
- selected / fully opaque with the Alpha channel selected).
- </p>
- <p>
- The gray slider determines the <span class="emphasis"><em>mid point</em></span>.
- Going to the left, to the black, makes the image lighter
- (more colored / more opaque) . Going to the right, to the
- white, makes the image darker (less colored / more
- transparent).
- </p>
- </li>
- <li style="list-style-type: circle">
- <p>
- Two eye-droppers: when you click them, the mouse pointer
- becomes an eye-dropper. Then clicking on the image determines
- the black or the white point according to the chosen
- eye-dropper. Use the left, dark one to determine the
- black-point; use the right, white one to determine the white
- point.
- </p>
- </li>
- <li style="list-style-type: circle">
- <p>
- Three numeric text boxes to enter values directly.
- </p>
- </li>
- </ul>
- </div>
- <p>
- Input Levels are used to lighten highlights (bright tones),
- darken shadows (dark tones), change the balance of bright and
- dark tones. Move sliders to the left to increase lightness
- (increase the chosen color / increase opacity). Move the sliders
- to the right to lessen lightness (lessen the chosen color /
- lessen opacity)).
- </p>
- <div class="mediaobject">
- <img src="../images/toolbox/levels-input-1.png" />
- <div class="caption">
- <p>
- A gray-scaled image. Three stripes: Shadows (64), Mid Tones
- (127), Highlights (192). The histogram shows three peaks,
- one for each of the three tones.
- </p>
- </div>
- </div>
- <div class="figure">
- <a id="id2646034"></a>
- <p class="title">
- <b>Figure 13.129. 
- <span lang="en" xml:lang="en">Example for Input Levels</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/levels-input-2.png" alt="Example for Input Levels" />
- <div class="caption">
- <p>
- The Value channel is selected.
- The black slider (Shadows) has been moved up to the
- Shadows peak. The 64 value became 0 and the Shadows
- stripe became black (0). The Gamma (mid tones) slider is
- automatically moved to the middle of the tone range. Mid
- tones are made darker to 84 and Highlights to 171.
- </p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/levels-input-3.png" alt="Example for Input Levels" />
- <div class="caption">
- <p>
- The white slider (highlights) has been moved up to the
- highlight peak. The 192 value became 255 and the highlight
- stripe became white. The Gamma (mid tones) slider is
- automatically moved to the middle of the tone range. Mid
- tones are made lighter to 169 and Shadows to 84.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </dd>
- <dt>
- <span class="term">Output Levels</span>
- </dt>
- <dd>
- <p>
- Output Levels allows manual selection of a constrained output
- level range. There are also numeric text boxes with arrow-heads
- located here that can be used to interactively change the Output
- Levels.
- </p>
- <p>
- Output levels force the tone range to fit the new limits you have
- set.
- </p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- Working with Value: values are compressed and look more
- alike; so contrast is reduced. Shadows are made lighter:
- new details can show up but contrast is less; a compromise
- is necessary. Highlights are made darker.
- </p>
- </li>
- <li>
- <p>
- Working with Color channels: if you the use the green
- channel for example and set the output levels between 100
- and 140, all pixels with some green, even a low value, will
- have their green channel value shifted between 100 and 140.
- </p>
- </li>
- <li>
- <p>
- Working with Alpha channel: all Alpha values will be
- shifted to the range you have set.
- </p>
- </li>
- </ul>
- </div>
- <div class="figure">
- <a id="id2646184"></a>
- <p class="title">
- <b>Figure 13.130. 
- <span lang="en" xml:lang="en">Example for Output Levels</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/levels-output-1.png" alt="Example for Output Levels" />
- <div class="caption">
- <p>
- <span class="bold"><strong>Original image</strong></span>:
- A RGB gradient from black (0;0;0) to white (255;255;255).
- Output Levels has no histogram; here, we used
- <span class="guimenu">Dialogs</span> ‚Üí <span class="guimenuitem">Histogram</span>.
- </p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/levels-output-2.png" alt="Example for Output Levels" />
- <div class="caption">
- <p>
- Value channel selected.
- The black slider has been moved to 63 and the white slider
- to 189. The Histogram shows the compression of pixels. No
- pixel is less than 63, and no pixel is more than 189. In
- the image, Shadows are lighter and Highlights are darker:
- contrast is reduced.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </dd>
- <dt>
- <span class="term">All Channels</span>
- </dt>
- <dd>
- <p>
- <span class="guilabel">Open</span>: This button allows you to
- select a file holding level settings.
- </p>
- <p>
- <span class="guilabel">Save</span>: Allows you to save any levels
- you have set to a file that can be loaded later.
- </p>
- <p>
- <span class="guilabel">Auto</span>: Performs an automatic setting
- of the levels.
- </p>
- <p>
- <span class="guilabel">Three eyedroppers</span>: These three buttons
- respectively represent a white, a gray and a black eye-dropper.
- When you click one of these buttons, the mouse pointer takes the
- form of the eye-dropper it represents. Then, when clicking the
- image, the clicked pixel determines the <span class="emphasis"><em>white point
- </em></span>, the <span class="emphasis"><em>black point</em></span> or the
- <span class="emphasis"><em>mid point</em></span> according to the eye-dropper you
- chose. Works on all channels, even if a particular channel is
- selected.
- </p>
- <div class="figure">
- <a id="id2646357"></a>
- <p class="title">
- <b>Figure 13.131. 
- <span lang="en" xml:lang="en">Example for Levels eye-droppers</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/levels-eyedrop.png" alt="Example for Levels eye-droppers" />
- <div class="caption">
- <p>
- At the bottom, a gradient from black to white. Down, the
- result after clicking with the white eye-dropper: all
- pixels with a value higher than that of the clicked pixel
- turned to white.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </dd>
- <dt>
- <span class="term">Preview</span>
- </dt>
- <dd>
- <p>
- The Preview button makes all changes to the levels dynamically so
- that the new level settings can be viewed straight away.
- </p>
- </dd>
- </dl>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2646423"></a>5.6.3. 
- <span lang="en" xml:lang="en">Tool Options dialog</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="variablelist">
- <p>
- Although this tool is not present in Tool box, nevertheless it has a
- Tool Option Dialog under the Toolbox. These options are described here:
- </p>
- <dl>
- <dt>
- <span class="term">Histogram Scale</span>
- </dt>
- <dd>
- <p>
- These two options have the same action as the logarithmic and
- Linear buttons in the Levels dialog.
- </p>
- </dd>
- <dt>
- <span class="term">Sample Average</span>
- </dt>
- <dd>
- <p>
- This slider sets the “<span class="quote">radius</span>” of the color-picking
- area. This area appears as a more or less enlarged square when
- you maintain the click on a pixel.
- </p>
- </dd>
- </dl>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2646492"></a>5.6.4. 
- <span lang="en" xml:lang="en">Actual practice</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2646505"></a>
- <p class="title">
- <b>Figure 13.132. 
- <span lang="en" xml:lang="en">A very under-exposed image</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/colors-retinex1.png" alt="A very under-exposed image" />
- <div class="caption">
- <p>Original image</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/levels-ex1b.png" alt="A very under-exposed image" />
- <div class="caption">
- <p>
- The histogram shows a predominance of Shadows and missing
- Highlights.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="figure">
- <a id="id2646565"></a>
- <p class="title">
- <b>Figure 13.133. 
- <span lang="en" xml:lang="en">Setting the white point</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/levels-ex2a.png" alt="Setting the white point" />
- <div class="caption">
- <p>
- The white slider has been moved to the start of well marked
- Highlights. The image lightens up.
- </p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/levels-ex2b.png" alt="Setting the white point" />
- <div class="caption">
- <p>
- The resulting histogram (down) shows Highlights now, but Shadows
- are still predominant.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="figure">
- <a id="id2646627"></a>
- <p class="title">
- <b>Figure 13.134. 
- <span lang="en" xml:lang="en">
- Setting the balance between Shadows and Highlights
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/levels-ex3a.png" alt="Setting the balance between Shadows and Highlights" />
- <div class="caption">
- <p>
- The mid slider has been moved to the left. This results in
- reducing the proportion of Shadows and increasing the proportion
- of Highlights.
- </p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/levels-ex3b.png" alt="Setting the balance between Shadows and Highlights" />
- <div class="caption">
- <p>
- The resulting histogram (down) confirms the reduction of Shadows.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </div>
- </div>
- <div class="navfooter">
- <hr />
- <table width="100%" summary="Navigation footer">
- <tr>
- <td width="40%" align="left"><a accesskey="p" href="gimp-tool-threshold.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="gimp-tools-color.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="gimp-tool-curves.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="gimp-tool-threshold.html">5.5. 
- <span lang="en" xml:lang="en">Threshold</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="gimp-tool-curves.html">5.7. 
- <span lang="en" xml:lang="en">Curves</span>
- </a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-